package net.service;

import net.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author admin
 * @Date 2019/4/9 8:19
 */
public interface OrderService {
    List<Order> findAll();
    Order findByOrderId(String id);
    List<Order> search(OrderVo orderVo);
    List<Download> findItemByOid(DateVo dateVo);
    int createOrder(Order order,User user);
    List<Order> findByUid(Integer uid);
    int updatePayState(@Param(value = "id") String out_trade_no,
                       @Param(value = "state") Integer state);

    int deleteById(@Param(value = "id") String id);
}
